#ifndef __LENGTH_H__
#define __LENGTH_H__
#include "Unit.h"

class Length
{
public:
    Length(int, const Unit &);
    int convertToBaseUnit() const;   
    bool operator==(const Length&) const;

    friend Length operator+(const Length&, const Length&);
    
    int calcMile();
    int calcYard();
    int calcFeet();
    void display() const;

private:
    int length_m;
    const Unit& unit_m;
    int mile_m;
    int yard_m;
    int feet_m; 
};

#endif

